<?php /*a:4:{s:61:"D:\phpstudy_pro\WWW\xiaomu\tp\app\admin\view\index\index.html";i:1725111586;s:56:"D:\phpstudy_pro\WWW\xiaomu\tp\app\admin\view\layout.html";i:1725115306;s:63:"D:\phpstudy_pro\WWW\xiaomu\tp\app\admin\view\common\header.html";i:1725111347;s:64:"D:\phpstudy_pro\WWW\xiaomu\tp\app\admin\view\common\sidebar.html";i:1725111257;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>欢迎使用小木CMS内容管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    <link rel="stylesheet" href="/zhcms/layui_v2_9_10/css/layui.css" media="all">
    <link rel="stylesheet" href="/zhcms/style.css?v=<?php echo time();?>" media="all">

    <script src="/zhcms/jquery/jquery-3.6.0.min.js" charset="utf-8"></script>
    <script src="/zhcms/layui_v2_9_10/layui.js" charset="utf-8"></script>

</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
    <div class="layui-logo layui-hide-xs layui-bg-black">
      <a href="#<?php echo url('Index/welcome'); ?>" class="frame-url" style="color: #fff;font-size:20px"
        data-href="<?php echo url('Index/welcome'); ?>"
      >小木管理系统</a>
    </div>

    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
        <a href="javascript:;">
          <img src="//unpkg.com/outeres@0.0.10/img/layui/icon-v2.png" class="layui-nav-img">
          <?php echo session('admin.nickname'); ?>
        </a>
        <dl class="layui-nav-child">
          <dd><a href="javascript:;">基本资料</a></dd>
          <dd><a href="#<?php echo url('/admin/system.admin/password'); ?>" data-href="<?php echo url('/admin/system.admin/password'); ?>" class="frame-url">修改密码</a></dd>
          <dd><a href="javascript:;" id="loginout">登出</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
        <a href="javascript:;">
          <i class="layui-icon layui-icon-more-vertical"></i>
        </a>
      </li>
    </ul>
  </div>

  <script>
    $(function(){
      $("#loginout").on("click",function(){
        $.post("<?php echo url('/admin/Login/out'); ?>",function(res){
          console.log(res);
          window.location.href=res.url;
        })
      })
    })
  </script>
    <div class="layui-side layui-bg-black">
      <div class="layui-side-scroll">
    <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
    <ul class="layui-nav layui-nav-tree" lay-filter="test">


      <li class="layui-nav-item layui-nav-itemed">
        <a href="#<?php echo url('web.webadmin/index'); ?>" data-href="<?php echo url('web.webadmin/index'); ?>" class="frame-url">分类管理</a>
      </li>

      <li class="layui-nav-item layui-nav-itemed">
        <a href="#<?php echo url('web.webchapters/index'); ?>" data-href="<?php echo url('web.webchapters/index'); ?>" class="frame-url">文章管理</a>
      </li>

      <li class="layui-nav-item layui-nav-itemed">
        <a href="#<?php echo url('web.webconfig/index'); ?>" data-href="<?php echo url('web.webconfig/index'); ?>" class="frame-url">网站信息</a>
      </li>

    </ul>
  </div>

  <script>
    $(function(){
      $(".frame-url").on("click",function(){
        var url = $(this).attr("data-href");
        console.log(url)
        $("#iframe").attr("src",url);
      })
    })
  </script>
    </div>
    <div class="layui-body">
      <!-- 内容主体区域 -->
      <div style="padding: 15px;">

       
          <div class="layui-card layui-panel">
            <!-- <div class="layui-card-header">
              下面是充数内容，为的是出现滚动条
            </div> -->
            <div class="layui-card-body">

              <iframe width="100%" frameborder="no" border="0" marginwidth="0" marginheight="0" id="iframe"
              src="<?php echo url('/admin/Index/welcome'); ?>" height="1100"></iframe>

        
            </div>
          </div> 
          
        <br><br><br>
      </div>
    </div>
    <div class="layui-footer">
      小木CMS内容管理系统提供技术支持
    </div>
  </div>


  <script>
    //JS 
    layui.use(['element', 'layer', 'util'], function(){
      var element = layui.element;
      var layer = layui.layer;
      var util = layui.util;
      var $ = layui.$;
      
      //头部事件
      util.event('lay-header-event', {
        menuLeft: function(othis){ // 左侧菜单事件
          layer.msg('展开左侧菜单的操作', {icon: 0});
        },
        menuRight: function(){  // 右侧菜单事件
          layer.open({
            type: 1,
            title: '更多',
            content: '<div style="padding: 15px;">处理右侧面板的操作</div>',
            area: ['260px', '100%'],
            offset: 'rt', // 右上角
            anim: 'slideLeft', // 从右侧抽屉滑出
            shadeClose: true,
            scrollbar: false
          });
        }
      });
    });

    </script>


</body>
</html>